home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 09 - 1993 / 09.07 Jul 93 / Bedrock Header Files / Intl Includes / BRLitCns.h < prev    next >
Encoding:
Text File  |  1993-04-22  |  14.1 KB  |  588 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //      File:        BRLitCns.h
  4. //      Release Version:    1.0d1
  5. // 
  6. //      Creation Date:        March 1993
  7. // 
  8. //      COPYRIGHT 1993 SYMANTEC CORPORATION. ALL RIGHTS RESERVED. UNPUBLISHED -- RIGHTS
  9. //      RESERVED UNDER THE COPYRIGHT LAWS OF THE UNITED STATES. USE OF COPYRIGHT NOTICE IS
  10. //      PRECAUTIONARY ONLY AND DOES NOT IMPLY PUBLICATION OR DISCLOSURE.
  11. // 
  12. //      THIS SOFTWARE CONTAINS PROPRIETARY AND CONFIDENTIAL INFORMATION OF SYMANTEC
  13. //      CORPORATION. USE, DISCLOSURE, OR REPRODUCTION IS PROHIBITED WITHOUT THE PRIOR
  14. //      EXPRESS WRITTEN PERMISSION OF SYMANTEC CORPORATION.
  15. // 
  16. //      RESTRICTED RIGHTS LEGEND
  17. //      Use, duplication, or disclosure by the Government is subject to restrictions as Set
  18. //      forth in subparagraph (c)(l)(ii) of the Rights in Technical Data and Computer
  19. //      Software clause at DFARS 252.227-7013. Symantec Corporation, 10201 Torre Avenue,
  20. //      Cupertino, CA 95014.
  21. // 
  22. //=======================================================================================
  23. #ifndef    BRLITCNS_H
  24. #define    BRLITCNS_H
  25. #endif
  26.  
  27. #ifndef    BRWRISYS_H
  28. #include "BRWRISYS.H"
  29. #endif
  30.  
  31.  
  32. //========================================================================================
  33. //    CLASS BR_CLiteralConstants
  34. //========================================================================================
  35.  
  36. class BR_CLiteralConstants
  37. {
  38. public:
  39.     BR_CLiteralConstants();
  40.     ~BR_CLiteralConstants();
  41.  
  42.     BR_Character GetExclamationMark() const;
  43.     BR_Character GetQuotationMark() const;
  44.     BR_Character GetNumberSign() const;
  45.     BR_Character GetDollarSign() const;
  46.     BR_Character GetPercent() const;
  47.     BR_Character GetAmpersand() const;
  48.     BR_Character GetCommercialAt() const;
  49.     BR_Character GetApostrophe() const;
  50.     BR_Character GetLeftParenthesis() const;
  51.     BR_Character GetRightParenthesis() const;
  52.     BR_Character GetAsterisk() const;
  53.     BR_Character GetPlusSign() const;
  54.     BR_Character GetMinusSign() const;
  55.     BR_Character GetComma() const;
  56.     BR_Character GetHypen() const;
  57.     BR_Character GetPeriod() const;
  58.     BR_Character GetSlash() const;
  59.     BR_Character GetColon() const;
  60.     BR_Character GetSemicolon() const;
  61.     BR_Character GetLessThan() const;
  62.     BR_Character GetEqualsSign() const;
  63.     BR_Character GetGreaterThan() const;
  64.     BR_Character GetQuestionMark() const;
  65.     BR_Character GetLeftBracket() const;
  66.     BR_Character GetBackslash() const;
  67.     BR_Character GetRightBracket() const;
  68.     BR_Character GetCircumflex() const;
  69.     BR_Character GetUnderscore() const;
  70.     BR_Character GetGraveAccent() const;
  71.     BR_Character GetLeftBrace() const;
  72.     BR_Character GetVerticalLine() const;
  73.     BR_Character GetRightBrace() const;
  74.     BR_Character GetTilde() const;
  75.  
  76.     BR_Boolean SetExclamationMark();
  77.     BR_Boolean SetQuotationMark();
  78.     BR_Boolean SetNumberSign();
  79.     BR_Boolean SetDollarSign();
  80.     BR_Boolean SetPercent();
  81.     BR_Boolean SetAmpersand();
  82.     BR_Boolean SetCommercialAt();
  83.     BR_Boolean SetApostrophe();
  84.     BR_Boolean SetLeftParenthesis();
  85.     BR_Boolean SetRightParenthesis();
  86.     BR_Boolean SetAsterisk();
  87.     BR_Boolean SetPlusSign();
  88.     BR_Boolean SetMinusSign();
  89.     BR_Boolean SetComma();
  90.     BR_Boolean SetHypen();
  91.     BR_Boolean SetPeriod();
  92.     BR_Boolean SetSlash();
  93.     BR_Boolean SetColon();
  94.     BR_Boolean SetSemicolon();
  95.     BR_Boolean SetLessThan();
  96.     BR_Boolean SetEqualsSign();
  97.     BR_Boolean SetGreaterThan();
  98.     BR_Boolean SetQuestionMark();
  99.     BR_Boolean SetLeftBracket();
  100.     BR_Boolean SetBackslash();
  101.     BR_Boolean SetRightBracket();
  102.     BR_Boolean SetCircumflex();
  103.     BR_Boolean SetUnderscore();
  104.     BR_Boolean SetGraveAccent();
  105.     BR_Boolean SetLeftBrace();
  106.     BR_Boolean SetVerticalLine();
  107.     BR_Boolean SetRightBrace();
  108.     BR_Boolean SetTilde();
  109. protected:
  110.  
  111. private:
  112.     BR_CLocale* fLocale;
  113.  
  114.     BR_Character fExclamationMark;
  115.     BR_Character fQuotationMark;
  116.     BR_Character fNumberSign;
  117.     BR_Character fDollarSign;
  118.     BR_Character fPercent;
  119.     BR_Character fAmpersand;
  120.     BR_Character fCommercialAt;
  121.     BR_Character fApostrophe;
  122.     BR_Character fLefTParenthesis;
  123.     BR_Character fRightParenthesis;
  124.     BR_Character fAsterisk;
  125.     BR_Character fPlusSign;
  126.     BR_Character fMinusSign;
  127.     BR_Character fComma;
  128.     BR_Character fHypen;
  129.     BR_Character fPeriod;
  130.     BR_Character fSlash;
  131.     BR_Character fColon;
  132.     BR_Character fSemicolon;
  133.     BR_Character fLessThan;
  134.     BR_Character fEqualsSign;
  135.     BR_Character fGreaterThan;
  136.     BR_Character fQuestionMark;
  137.     BR_Character fLefttBracket;
  138.     BR_Character fBackslash;
  139.     BR_Character fRightBracket;
  140.     BR_Character fCircumflex;
  141.     BR_Character fUnderscore;
  142.     BR_Character fGraveAccent;
  143.     BR_Character fLeftBrace;
  144.     BR_Character fVerticalLine;
  145.     BR_Character fRightBrace;
  146.     BR_Character fTilde;
  147. };
  148.  
  149.  
  150.  
  151.  
  152. //----------------------------------------------------------------------------------------
  153. //
  154. //    INLINE METHOD IMPLEMENTATIONS
  155. //
  156. //----------------------------------------------------------------------------------------
  157.  
  158.  
  159. //----------------------------------------------------------------------------------------
  160. //
  161. //    BR_CLiteralConstants::GetExclamationMark
  162. //
  163. //----------------------------------------------------------------------------------------
  164.  
  165. inline BR_Character GetExclamationMark()
  166. {
  167.     return (fExclamationMark);
  168. }
  169.  
  170.  
  171.  
  172.  
  173. //----------------------------------------------------------------------------------------
  174. //
  175. //    BR_CLiteralConstants::GetQuotationMark
  176. //
  177. //----------------------------------------------------------------------------------------
  178.  
  179. inline BR_Character GetQuotationMark()
  180. {
  181.     return (fQuotationMark);
  182. }
  183.  
  184.  
  185.  
  186. //----------------------------------------------------------------------------------------
  187. //
  188. //    BR_CLiteralConstants::GetNumberSign
  189. //
  190. //----------------------------------------------------------------------------------------
  191.  
  192. inline BR_Character GetNumberSign()
  193. {
  194.     return (fNumberSign);
  195. }
  196.  
  197.  
  198.  
  199. //----------------------------------------------------------------------------------------
  200. //
  201. //    BR_CLiteralConstants::GetDollarSign
  202. //
  203. //----------------------------------------------------------------------------------------
  204.  
  205. inline BR_Character GetDollarSign()
  206. {
  207.     return (fDollarSign);
  208. }
  209.  
  210.  
  211.  
  212. //----------------------------------------------------------------------------------------
  213. //
  214. //    BR_CLiteralConstants::GetPercent
  215. //
  216. //----------------------------------------------------------------------------------------
  217.  
  218. inline BR_Character GetPercent()
  219. {
  220.     return (fPercent);
  221. }
  222.  
  223.  
  224.  
  225. //----------------------------------------------------------------------------------------
  226. //
  227. //    BR_CLiteralConstants::GetAmpersand
  228. //
  229. //----------------------------------------------------------------------------------------
  230.  
  231. inline BR_Character GetAmpersand()
  232. {
  233.     return (fAmpersand);
  234. }
  235.  
  236.  
  237.  
  238. //----------------------------------------------------------------------------------------
  239. //
  240. //    BR_CLiteralConstants::GetCommercialAt
  241. //
  242. //----------------------------------------------------------------------------------------
  243.  
  244. inline BR_Character GetCommercialAt()
  245. {
  246.     return (fCommercialAt);
  247. }
  248.  
  249.  
  250.  
  251. //----------------------------------------------------------------------------------------
  252. //
  253. //    BR_CLiteralConstants::GetApostrophe
  254. //
  255. //----------------------------------------------------------------------------------------
  256.  
  257. inline BR_Character GetApostrophe()
  258. {
  259.     return (fApostrophe);
  260. }
  261.  
  262.  
  263.  
  264. //----------------------------------------------------------------------------------------
  265. //
  266. //    BR_CLiteralConstants::GetLeftParenthesis
  267. //
  268. //----------------------------------------------------------------------------------------
  269.  
  270. inline BR_Character GetLeftParenthesis()
  271. {
  272.     return (fLefTParenthesis);
  273. }
  274.  
  275.  
  276.  
  277. //----------------------------------------------------------------------------------------
  278. //
  279. //    BR_CLiteralConstants::GetRightParenthesis
  280. //
  281. //----------------------------------------------------------------------------------------
  282.  
  283. inline BR_Character GetRightParenthesis()
  284. {
  285.     return (fRightParenthesis);
  286. }
  287.  
  288.  
  289.  
  290. //----------------------------------------------------------------------------------------
  291. //
  292. //    BR_CLiteralConstants::GetAsterisk
  293. //
  294. //----------------------------------------------------------------------------------------
  295.  
  296. inline BR_Character GetAsterisk()
  297. {
  298.     return (fAsterisk);
  299. }
  300.  
  301.  
  302.  
  303. //----------------------------------------------------------------------------------------
  304. //
  305. //    BR_CLiteralConstants::GetPlusSign
  306. //
  307. //----------------------------------------------------------------------------------------
  308.  
  309. inline BR_Character GetPlusSign()
  310. {
  311.     return (fPlusSign);
  312. }
  313.  
  314.  
  315.  
  316. //----------------------------------------------------------------------------------------
  317. //
  318. //    BR_CLiteralConstants::GetMinusSign
  319. //
  320. //----------------------------------------------------------------------------------------
  321.  
  322. inline BR_Character GetMinusSign()
  323. {
  324.     return (fMinusSign);
  325. }
  326.  
  327.  
  328.  
  329. //----------------------------------------------------------------------------------------
  330. //
  331. //    BR_CLiteralConstants::GetComma
  332. //
  333. //----------------------------------------------------------------------------------------
  334.  
  335. inline BR_Character GetComma()
  336. {
  337.     return (fComma);
  338. }
  339.  
  340.  
  341.  
  342. //----------------------------------------------------------------------------------------
  343. //
  344. //    BR_CLiteralConstants::GetHypen
  345. //
  346. //----------------------------------------------------------------------------------------
  347.  
  348. inline BR_Character GetHypen()
  349. {
  350.     return (fHypen);
  351. }
  352.  
  353.  
  354.  
  355. //----------------------------------------------------------------------------------------
  356. //
  357. //    BR_CLiteralConstants::GetPeriod
  358. //
  359. //----------------------------------------------------------------------------------------
  360.  
  361. inline BR_Character GetPeriod()
  362. {
  363.     return (fPeriod);
  364. }
  365.  
  366.  
  367.  
  368. //----------------------------------------------------------------------------------------
  369. //
  370. //    BR_CLiteralConstants::GetSlash
  371. //
  372. //----------------------------------------------------------------------------------------
  373.  
  374. inline BR_Character GetSlash()
  375. {
  376.     return (fSlash);
  377. }
  378.  
  379.  
  380.  
  381. //----------------------------------------------------------------------------------------
  382. //
  383. //    BR_CLiteralConstants::GetColon
  384. //
  385. //----------------------------------------------------------------------------------------
  386.  
  387. inline BR_Character GetColon()
  388. {
  389.     return (fColon);
  390. }
  391.  
  392.  
  393.  
  394. //----------------------------------------------------------------------------------------
  395. //
  396. //    BR_CLiteralConstants::GetSemicolon
  397. //
  398. //----------------------------------------------------------------------------------------
  399.  
  400. inline BR_Character GetSemicolon()
  401. {
  402.     return (fSemicolon);
  403. }
  404.  
  405.  
  406.  
  407. //----------------------------------------------------------------------------------------
  408. //
  409. //    BR_CLiteralConstants::GetLessThan
  410. //
  411. //----------------------------------------------------------------------------------------
  412.  
  413. inline BR_Character GetLessThan()
  414. {
  415.     return (fLessThan);
  416. }
  417.  
  418.  
  419.  
  420. //----------------------------------------------------------------------------------------
  421. //
  422. //    BR_CLiteralConstants::GetEqualsSign
  423. //
  424. //----------------------------------------------------------------------------------------
  425.  
  426. inline BR_Character GetEqualsSign()
  427. {
  428.     return (fEqualsSign);
  429. }
  430.  
  431.  
  432.  
  433. //----------------------------------------------------------------------------------------
  434. //
  435. //    BR_CLiteralConstants::GetGreaterThan
  436. //
  437. //----------------------------------------------------------------------------------------
  438.  
  439. inline BR_Character GetGreaterThan()
  440. {
  441.     return (fGreaterThan);
  442. }
  443.  
  444.  
  445.  
  446. //----------------------------------------------------------------------------------------
  447. //
  448. //    BR_CLiteralConstants::GetQuestionMark
  449. //
  450. //----------------------------------------------------------------------------------------
  451.  
  452. inline BR_Character GetQuestionMark()
  453. {
  454.     return (fQuestionMark);
  455. }
  456.  
  457.  
  458.  
  459. //----------------------------------------------------------------------------------------
  460. //
  461. //    BR_CLiteralConstants::GetLeftBracket
  462. //
  463. //----------------------------------------------------------------------------------------
  464.  
  465. inline BR_Character GetLeftBracket()
  466. {
  467.     return (fleftbracket);
  468. }
  469.  
  470.  
  471.  
  472. //----------------------------------------------------------------------------------------
  473. //
  474. //    BR_CLiteralConstants::GetBackslash
  475. //
  476. //----------------------------------------------------------------------------------------
  477.  
  478. inline BR_Character GetBackslash()
  479. {
  480.     return (fBackslash);
  481. }
  482.  
  483.  
  484.  
  485. //----------------------------------------------------------------------------------------
  486. //
  487. //    BR_CLiteralConstants::GetRightBracket
  488. //
  489. //----------------------------------------------------------------------------------------
  490.  
  491. inline BR_Character GetRightBracket()
  492. {
  493.     return (fRightBracket);
  494. }
  495.  
  496.  
  497.  
  498. //----------------------------------------------------------------------------------------
  499. //
  500. //    BR_CLiteralConstants::GetCircumflex
  501. //
  502. //----------------------------------------------------------------------------------------
  503.  
  504. inline BR_Character GetCircumflex()
  505. {
  506.     return (fCircumflex);
  507. }
  508.  
  509.  
  510.  
  511. //----------------------------------------------------------------------------------------
  512. //
  513. //    BR_CLiteralConstants::GetUnderscore
  514. //
  515. //----------------------------------------------------------------------------------------
  516.  
  517. inline BR_Character GetUnderscore()
  518. {
  519.     return (fUnderscore);
  520. }
  521.  
  522.  
  523.  
  524. //----------------------------------------------------------------------------------------
  525. //
  526. //    BR_CLiteralConstants::GetGraveAccent
  527. //
  528. //----------------------------------------------------------------------------------------
  529.  
  530. inline BR_Character GetGraveAccent()
  531. {
  532.     return (fGraveAccent);
  533. }
  534.  
  535.  
  536.  
  537. //----------------------------------------------------------------------------------------
  538. //
  539. //    BR_CLiteralConstants::GetLeftBrace
  540. //
  541. //----------------------------------------------------------------------------------------
  542.  
  543. inline BR_Character GetLeftBrace()
  544. {
  545.     return (fLeftBrace);
  546. }
  547.  
  548.  
  549.  
  550. //----------------------------------------------------------------------------------------
  551. //
  552. //    BR_CLiteralConstants::GetVerticalLine
  553. //
  554. //----------------------------------------------------------------------------------------
  555.  
  556. inline BR_Character GetVerticalLine()
  557. {
  558.     return (fVerticalLine);
  559. }
  560.  
  561.  
  562.  
  563. //----------------------------------------------------------------------------------------
  564. //
  565. //    BR_CLiteralConstants::GetRightBrace
  566. //
  567. //----------------------------------------------------------------------------------------
  568.  
  569. inline BR_Character GetRightBrace()
  570. {
  571.     return (fRightBrace);
  572. }
  573.  
  574.  
  575.  
  576. //----------------------------------------------------------------------------------------
  577. //
  578. //    BR_CLiteralConstants::GetTilde
  579. //
  580. //----------------------------------------------------------------------------------------
  581.  
  582. inline BR_Character GetTilde()
  583. {
  584.     return (fTilde);
  585. }
  586.  
  587.  
  588.